class Appkey {
  bool success;
  String message;
  int code;
  Result result;
  int timestamp;

  Appkey({this.success, this.message, this.code, this.result, this.timestamp});

  Appkey.fromJson(Map<String, dynamic> json) {
    success = json['success'];
    message = json['message'];
    code = json['code'];
    result =
        json['result'] != null ? new Result.fromJson(json['result']) : null;
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['success'] = this.success;
    data['message'] = this.message;
    data['code'] = this.code;
    if (this.result != null) {
      data['result'] = this.result.toJson();
    }
    data['timestamp'] = this.timestamp;
    return data;
  }
}

class Result {
  String appkey;
  String accessToken;

  Result({this.appkey, this.accessToken});

  Result.fromJson(Map<String, dynamic> json) {
    appkey = json['appkey'];
    accessToken = json['accessToken'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['appkey'] = this.appkey;
    data['accessToken'] = this.accessToken;
    return data;
  }
}